Skip to content

Add Echo - #21

Merged
oritromax merged 1 commit into
mainfrom
add-echo
Aug 22, 2026
Merged

oritromax merged 1 commit into
mainfrom
add-echo

Conversation

@oritromax

Copy link
Copy Markdown
Owner

Tier 2, item 4. universal → go → web → go.echo, 5 new checks.

Same shape as Gin, because the failures are the same shape: a router that starts
bare, a convenience method that skips the server settings that matter, and
defaults about client addresses that are wrong in one direction or the other.

Check Severity
recover-middleware-present critical — a new Echo instance has no middleware at all, so nothing recovers a panic unless someone registered it, and a panic ends the process rather than the request
server-timeouts-set high — e.Start() runs a server with no timeouts
debug-mode-off high — debug puts the internal error message in the response body
client-ip-extraction-trusted high
request-body-bounded recommended

The client-address check is the interesting one

Echo differs from Gin here, and it is the one place I did not copy the Gin check
across. Reading the forwarded header without naming trusted proxies lets any
caller claim any address. Reading the direct address while behind a proxy
records the proxy for every request. Both defaults are wrong somewhere, so
the check asks for a deliberate choice with trust ranges rather than asserting a
particular value.

Verification

Both directions, as usual — a bad.go with echo.New(), e.Debug = true and a
bare e.Start(":8080"), and a good.go with recover, body limit, an IP
extractor with trust options and an explicit http.Server carrying timeouts.
Each command separated them.

References checked with Node's fetch, not curl — the rule that came out of
the Shell PR. One candidate page (/docs/cookbook/http-server) returned 404 and
was dropped before being cited rather than after.

Five checks, the same shape as Gin because the failures are the same shape: a
router that starts bare, a convenience method that skips the server settings
that matter, and defaults about client addresses that are wrong in one
direction or the other.

Recovery is critical here for a sharper reason than in Gin. A new Echo instance
comes with no middleware at all, so nothing recovers a panic unless someone
registered it, and an unrecovered panic ends the process rather than the
request.

The client address check is the one that differs. Reading the forwarded header
without naming trusted proxies lets any caller claim any address, and reading
the direct address behind a proxy records the proxy for everyone. Both defaults
are wrong somewhere, so the check asks for a deliberate choice rather than a
particular value.

References were verified with the link checker's own method rather than curl,
after gnu.org turned out to answer one and not the other. One candidate page
returned 404 and was dropped before being cited.
@oritromax
oritromax merged commit 36cd517 into main Aug 22, 2026
1 check passed
@oritromax
oritromax deleted the add-echo branch August 22, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant